export function isImage(ext) {
  switch (ext.toUpperCase()) {
    case "BMP":
    case "JPG":
    case "JPEG":
    case "PNG":
    case "APNG":
    case "GIF":
    case "ICO":
    case "SVG":
    case "WEBP":
    case "AVIF":
      return true;
    default:
      return false;
  }
}